import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home.vue'
import Login from '@/views/login.vue'
import A from '@/views/a.vue'
import B from '@/views/b.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
     
      component:Home,
      children:[{
         path: 'login',
     
      component:Login,  

      },
      {
        path:'a',
        component:A,
      },
      {
        path:'b',
        component:B,
        
      },
    ]
    },
    
  ],
})

export default router
